<?php

class StockData{
	public $DT_ts;
	public $F_volume;
	public $F_close;

	public function __construct($_timestamp, $_volume, $_close){
		$this->DT_ts = $_timestamp;
		$this->F_volume = (float)$_volume;
		$this->F_close = (float)$_close;
	}
}

class StockDataCandle extends StockData{
	private $F_open;
	private $F_low;
	private $F_high;
	
	public function __construct($_timestamp, $_volume, $_open, $_close, $_low, $_high){
		parent::__construct($_timestamp, $_volume, $_close);
		$this->F_open = (float)$_open;
		$this->F_low = (float)$_low;
		$this->F_high = (float)$_high;
	}
}

?>
